	function box($field, $value, $fieldinfo) {
		extract($fieldinfo);
		switch($setting['boxtype']){
		    case 'radio':
		        return form::radio($setting['options'], 'info['.$field.']', $field, $value, $setting['cols'], $css, $formattribute, $setting['width']);
		    case 'checkbox':
		        return form::checkbox($setting['options'], 'info['.$field.']', $field, $value, $setting['cols'], $css, $formattribute, $setting['width']);
		     case 'select':
		        return form::select($setting['options'], 'info['.$field.']', $field, $value, $setting['size'], $css, $formattribute);
		     case 'multiple':
		        return form::multiple($setting['options'], 'info['.$field.']', $field, $value, $setting['size'], $css, $formattribute);
		}
	}
